﻿<navigation:Page xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
           x:Class="LEEAAttendanceControl.Views.Login" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Login">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="270"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="140"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        
        <Rectangle Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" Grid.RowSpan="3" Fill="#404041" Opacity="0.7"/>

        <sdk:ValidationSummary x:Name="errorSummary" Grid.Column="1" Grid.Row="0" VerticalAlignment="Bottom"
                               Width="270" Height="100" BorderBrush="Black" BorderThickness="1"/>

        <Border BorderBrush="#404041" BorderThickness="5" Grid.Column="1" Grid.Row="1">
            <Canvas x:Name="loginCanvas" Background="White">
                <sdk:Label Content="Login:" Canvas.Left="15" Canvas.Top="23" FontSize="13"/>
                <TextBox x:Name="nameBox" Width="150" Canvas.Left="100" Canvas.Top="20" GotFocus="nameBox_GotFocus"/>
                
                <sdk:Label Content="Password:" FontSize="13" Canvas.Left="15" Canvas.Top="60"/>
                <PasswordBox x:Name="passwordBox" Width="150" Canvas.Left="100" Canvas.Top="55"
                             GotFocus="passwordBox_GotFocus"/>
                
                <Button x:Name="loginButton" Content="Login" Width="60" Canvas.Left="190" Canvas.Top="100"
                        Click="loginButton_Click"/>
            </Canvas>
        </Border>
    </Grid>
</navigation:Page>
